package com.zhang.boot.web.controller;

import com.zhang.boot.core.service.OSSService;
import com.zhang.boot.core.vo.Result;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author zhangshaobin
 * @Date 2020/11/10
 * @Description 阿里云Object上传
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/oss")
public class OssController {

    private final OSSService ossService;

    @GetMapping("/getPolicy")
    public Result  getPolicy() {
        return ossService.getPolicy();
    }
}
